package com.nft.qz.consumer.client;

import com.nft.qz.service.HelloDubboAPI;
import com.nft.qz.service.HelloDubboAPI2;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloServiceClient{

    @DubboReference
    private HelloDubboAPI helloDubboAPI;

    @GetMapping("/hello")
    public String hello(){
        return helloDubboAPI.sayHello("dubbo");
    }

}
